#ifndef SIGNALTRANSFER_H
#define SIGNALTRANSFER_H

#include <QObject>
#include <QSettings>

#define ST SignalTransfer::instance()

/********************************************************
 * @ClassName:  SignalTransfer
 * @Brief:      信号中继类，单例模式
 * @date        2022/01/19
 ********************************************************/
class SignalTransfer : public QObject
{
    Q_OBJECT
public:
    static SignalTransfer *instance();
    static void closeInstance();

    QSettings *settings() const;

    int blockSideLength() const;
    void setBlockSideLength(int newBlockSideLength);

signals:

private:
    explicit SignalTransfer(QObject *parent = nullptr);
    static SignalTransfer *m_pInstance;

    QSettings *m_settings;               //设置

    int m_blockSideLength;           //边长

};

#endif // SIGNALTRANSFER_H
